package mypeople;


public abstract class Student 
{
	int id;
	String name;
	double math_grades;
	double computer_grades;
	
    /**
           * ????????
     * @param id   ???
     * @param name   ???? 
     * @param math_grades   ??????
     * @param computer_grades   ????????
     */
	public Student(int id,String name,double math_grades,double computer_grades){
		this.id=id;
		this.name=name;
		this.math_grades=math_grades;
		this.computer_grades=computer_grades;
	}
	
    /**
	 * <p>????setId??????????????id?????????</p>
	 * @param id  ??????????????id???
	 */
	public void setId(int id) {
		this.id=id;
	}
	/**
	 * <p>????getId??????????????????id??</p>
	 * @return   ????????id?????
	 */
	public int getId() {
		return this.id;
	}
	/**
	 * <p>????setName??????????????name?????????</p>
	 * @param name  ??????????name?????
	 */
	public void setName(String name) {
		this.name=name;
	}
	/**
	 * <p>????geName??????????????????name??</p>
	 * @return  ????????????name???
	 */
	public String getName() {
		return this.name;
	}
	/**
	 * <p>????setMathGrades??????????????math_grades?????????</p>
	 * @param math_grades  ??????????????math_grades???
	 */
	public void setMathGrades(double math_grades) {
		this.math_grades=math_grades;
	}
	/**
	 * <p>????getMathGrades??????????????????math_grades??</p>
	 * @return  ????????????math_grades???
	 */
	public double getMathGrades() {
		return this.math_grades;
	}
	/**
	 * <p>????setComputerGrades??????????????computer_grades?????????</p>
	 * @param computer_grades  ??????????????computer_grades???
	 */
	public void setComputerGrades(double computer_grades) {
		this.computer_grades=computer_grades;
	}
	/**
	 * <p>????getComputerGrades??????????????????computer_grades??</p>
	 * @return  ????????????computer_grades???
	 */
	public double getComputerGrades() {
		return this.computer_grades;
	}
	/**
	 * ????????????????????????????????
	 */
    public abstract void print(); 
	
}

